import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class EmptyPage extends StatelessWidget {
  final String message;
  final String imagePath;

  EmptyPage(
      {Key key,
      this.message = "暂无数据",
      this.imagePath = "resources/images/home/message_empty.png"})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: SizedBox(
        width: 100.w,
        height: 200.w,
        child: Column(
          children: [
            Image.asset(imagePath, width: 84.w, height: 84.w),
            SizedBox(height: 21.w),
            Text(message,
                style: TextStyle(
                    color: Color(0xFF141413),
                    fontSize: 18.w,
                    fontWeight: FontWeight.w300))
          ],
        ),
      ),
    );
  }
}
